.ys-colorpicker {
    width: 26px;
    height: 26px;
    border: 1px solid #e6e6e6;
    padding: 5px;
    border-radius: 2px;
    line-height: 24px;
    display: inline-block;
    cursor: pointer;
    transition: all .3s;
    -webkit-transition: all .3s
}

.ys-colorpicker:hover {
    border-color: #d2d2d2
}

.ys-colorpicker.ys-colorpicker-lg {
    width: 34px;
    height: 34px;
    line-height: 32px
}

.ys-colorpicker.ys-colorpicker-sm {
    width: 24px;
    height: 24px;
    line-height: 22px
}

.ys-colorpicker.ys-colorpicker-xs {
    width: 22px;
    height: 22px;
    line-height: 20px
}

.ys-colorpicker-trigger-bgcolor {
    display: block;
    background: url();border-radius: 2px
}

.ys-colorpicker-trigger-span {
    display: block;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 2px;
    text-align: center
}

.ys-colorpicker-trigger-i {
    display: inline-block;
    color: #FFF;
    font-size: 12px
}

.ys-colorpicker-trigger-i.ys-icon-close {
    color: #999
}

.ys-colorpicker-main {
    position: absolute;
    z-index: 66666666;
    width: 280px;
    padding: 7px;
    background: #FFF;
    border: 1px solid #d2d2d2;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,.12)
}

.ys-colorpicker-main-wrapper {
    height: 180px;
    position: relative
}

.ys-colorpicker-basis {
    width: 260px;
    height: 100%;
    position: relative
}

.ys-colorpicker-basis-white {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(90deg,#FFF,hsla(0,0%,100%,0))
}

.ys-colorpicker-basis-black {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(0deg,#000,transparent)
}

.ys-colorpicker-basis-cursor {
    width: 10px;
    height: 10px;
    border: 1px solid #FFF;
    border-radius: 50%;
    position: absolute;
    top: -3px;
    right: -3px;
    cursor: pointer
}

.ys-colorpicker-side {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 100%;
    background: linear-gradient(red,#FF0,#0F0,#0FF,#00F,#F0F,red)
}

.ys-colorpicker-side-slider {
    width: 100%;
    height: 5px;
    box-shadow: 0 0 1px #888;
    box-sizing: border-box;
    background: #FFF;
    border-radius: 1px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    position: absolute;
    left: 0
}

.ys-colorpicker-main-alpha {
    display: none;
    height: 12px;
    margin-top: 7px;
    background: url()
}

.ys-colorpicker-alpha-bgcolor {
    height: 100%;
    position: relative
}

.ys-colorpicker-alpha-slider {
    width: 5px;
    height: 100%;
    box-shadow: 0 0 1px #888;
    box-sizing: border-box;
    background: #FFF;
    border-radius: 1px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    position: absolute;
    top: 0
}

.ys-colorpicker-main-pre {
    padding-top: 7px;
    font-size: 0
}

.ys-colorpicker-pre {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    display: inline-block;
    margin-left: 6px;
    margin-bottom: 7px;
    cursor: pointer
}

.ys-colorpicker-pre:nth-child(11n+1) {
    margin-left: 0
}

.ys-colorpicker-pre-isalpha {
    background: url()
}

.ys-colorpicker-pre.ys-this {
    box-shadow: 0 0 3px 2px rgba(0,0,0,.15)
}

.ys-colorpicker-pre>div {
    height: 100%;
    border-radius: 2px
}

.ys-colorpicker-main-input {
    text-align: right;
    padding-top: 7px
}

.ys-colorpicker-main-input .ys-btn-container .ys-btn {
    margin: 0 0 0 10px
}

.ys-colorpicker-main-input div.ys-inline {
    float: left;
    margin-right: 10px;
    font-size: 14px
}

.ys-colorpicker-main-input input.ys-input {
    width: 160px;
    height: 30px;
    color: #666;
    font-size: 13px;
    padding: 0  10px;
}